package com.zyg.service.impl;

import com.zyg.dao.UserDao;
import com.zyg.dao.impl.UserDaoImpl;
import com.zyg.pojo.User;
import com.zyg.service.UserService;

import java.util.List;

/**
 * @author 申孟惠
 * @create 2019-10-15 15:13
 */
public class UserServiceImpl implements UserService {

    private UserDao userDao;

    public void setUserDao(UserDao userDao){
        this.userDao = userDao;
    }

    public UserServiceImpl(){
        System.out.println("用户对象创建了");
    }

    public void DeleteUser(Integer id) {
        userDao.deleteUser(id);
    }

    public void UpdateUser(User user) {
        userDao.updateUser(user);
    }

}
